import request from '@/utils/request'

// 查询评价列表
export function listComment(query) {
    return request({
        url: '/system/comment/list',
        method: 'get',
        params: query
    })
}

// 查询评价详情
export function getComment(commentId) {
    return request({
        url: '/system/comment/' + commentId,
        method: 'get'
    })
}

// 新增评价         
export function addComment(data) {
    return request({
        url: '/system/comment',
        method: 'post',
        data: data
    })
}

// 修改评价
export function updateComment(data) {
    return request({
        url: '/system/comment',
        method: 'put',
        data: data
    })
}

// 删除评价 
export function delComment(commentId) {
    return request({
        url: '/system/comment/' + commentId,
        method: 'delete'
    })
}